package com.yuntai.pms.model.enums;


import java.util.LinkedHashMap;
import java.util.Map;

public enum EnableStatus {

    ENABLE(0, "停用"),
    DISABLE(1, "启用");

    private Integer code;
    private String name;
    private final  static Map<Integer,String> enableStatusMap = new LinkedHashMap<Integer,String>();

    public static Map<Integer, String> getEnableStatusMap() { return enableStatusMap;
    }
    static   {
        enableStatusMap.put(EnableStatus.ENABLE.getCode(), EnableStatus.ENABLE.getName());
        enableStatusMap.put(EnableStatus.DISABLE.getCode(), EnableStatus.DISABLE.getName());
    }
    private EnableStatus(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
